-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: optimize Cypress recordings with conditional triggers #3043
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🚀 Deployed on https://pr-3043--dhis2-data-visualizer.netlify.app |
adeldhis2
added
e2e record
Apply this label to a pull request to trigger recording of E2E tests on Cypress Cloud
and removed
e2e record
Apply this label to a pull request to trigger recording of E2E tests on Cypress Cloud
labels
May 14, 2024
Passing run #2859 ↗︎
Details:
Review all test suite changes for PR #3043 ↗︎ |
adeldhis2
removed
the
e2e record
Apply this label to a pull request to trigger recording of E2E tests on Cypress Cloud
label
May 20, 2024
adeldhis2
added
the
e2e record
Apply this label to a pull request to trigger recording of E2E tests on Cypress Cloud
label
May 20, 2024
adeldhis2
removed
the
e2e record
Apply this label to a pull request to trigger recording of E2E tests on Cypress Cloud
label
May 21, 2024
adeldhis2
added
the
e2e record
Apply this label to a pull request to trigger recording of E2E tests on Cypress Cloud
label
May 21, 2024
adeldhis2
removed
the
e2e record
Apply this label to a pull request to trigger recording of E2E tests on Cypress Cloud
label
May 21, 2024
adeldhis2
added
the
e2e record
Apply this label to a pull request to trigger recording of E2E tests on Cypress Cloud
label
May 21, 2024
adeldhis2
added
e2e record
Apply this label to a pull request to trigger recording of E2E tests on Cypress Cloud
and removed
e2e record
Apply this label to a pull request to trigger recording of E2E tests on Cypress Cloud
labels
May 29, 2024
jenniferarnesen
force-pushed
the
dev
branch
2 times, most recently
from
June 4, 2024 08:56
34479f1
to
2bf0d53
Compare
chore: enhance parallel test execution setup in CI chore: trigger tests chore: split e2e testing into separate workflows for GitHub Actions and Cypress Cloud chore: fix workflow needs typo chore: adjust e2e workflow triggers for accurate routing chore: commit to trigger tests fix
Save over 3 minutes by parallelizing specs across 5 machines Reduce run time by up to 75%.
jenniferarnesen
approved these changes
Jun 4, 2024
🎉 This PR is included in version 100.5.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Key Changes:
Conditional Recording Triggers: Implemented conditional recording triggers via commit messages and GitHub labels to ensure that Cypress tests are only recorded when necessary.
Parallel Execution Strategies: Refined parallel execution strategies to improve efficiency and resolve test redundancies in GitHub Actions.
Debugging Enhancements: Added detailed debugging outputs to help track the dynamic values of the test environment variables and ensure correct parameter passing in the workflow.
Update Documentation: Updated the documentation to reflect the changes and ensure clarity on the new CI/CD processes.
Expected Outcomes:
Reduced Cypress Cloud Credit Usage: By optimising the conditions under which tests are recorded and uploaded to Cypress Cloud, we anticipate a significant reduction in credit usage.
Increased CI Efficiency: With better management of parallel execution and conditional testing, the CI process should be more efficient, leading to quicker test cycles.
Relevant Links:
GitHub Actions Run: View Run
Cypress Cloud Run: View Run
Jira Ticket:
For more details, please refer to the Jira ticket: DHIS2-17374.